#Target
TgtFile = commsh

SrcFile0 = CommsHand
SrcFile1 = FuncComms
SrcFile2 = PETComH
SrcFile3 = PETHIAct
SrcFile4 = RelXComH
SrcFile5 = SERFHIAct
SrcFile6 = SPCommsH

# App Source Paths
SrcDir = C:\softpay\ver30\SOURCE\COMMSHANDLER

AppObjects = \
	$(OBJ_DIR)\$(SrcFile0).o  \
	$(OBJ_DIR)\$(SrcFile1).o  \
	$(OBJ_DIR)\$(SrcFile2).o  \
	$(OBJ_DIR)\$(SrcFile3).o  \
	$(OBJ_DIR)\$(SrcFile4).o  \
	$(OBJ_DIR)\$(SrcFile5).o  \
	$(OBJ_DIR)\$(SrcFile6).o  

# Compiler Options
MkIncludes = -I $(SDS_INCLUDES) -I $(ACT_INCLUDES) -I $(SP2_INCLUDES) -I $(SERF_INCLUDES) -I $(CLS_INCLUDES) -I $(VVXEMV_INCLUDES) 
COptions = $(GCOPTIONS) -D__K2__ -D_VSC -D_DEBUG -f -s int=2 -s sizeof=2 -r a4 -r a5 -K2 -o $(@)

#  Target Definition Library
$(LIB_DIR)\$(TgtFile).a : $(AppObjects)
	@echo CREATING...Module $(LIB_DIR)\$(TgtFile).a
	@$(SDS)\cmd\liber -cy $(LIB_DIR)\$(TgtFile).a $(AppObjects)


$(OBJ_DIR)\$(SrcFile0).o : $(SrcDir)\$(SrcFile0).cpp \
		C:\softpay\ver30\SOURCE\INCLUDE\CommsHandler.h\
		C:\softpay\ver30\SOURCE\INCLUDE\UCLActivator.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HostInterfaceActivator.h 
	@echo COMPILING...$(SrcFile0).cpp
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile0).cpp | fmterr.exe

$(OBJ_DIR)\$(SrcFile1).o : $(SrcDir)\$(SrcFile1).cpp \
		C:\softpay\ver30\SOURCE\INCLUDE\counter.h\
		C:\softpay\ver30\SOURCE\INCLUDE\operate.h\
		C:\softpay\ver30\SOURCE\INCLUDE\emvfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\scalls.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mdlfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tblutil.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\card.h\
		C:\softpay\ver30\SOURCE\INCLUDE\check.h\
		C:\softpay\ver30\SOURCE\INCLUDE\list.h\
		C:\softpay\ver30\SOURCE\INCLUDE\udt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CommsHandler.h\
		C:\softpay\ver30\SOURCE\INCLUDE\cnt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pcounter.h\
		C:\softpay\ver30\SOURCE\INCLUDE\report.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SERFHostInterfaceActivator.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\accum.h\
		C:\softpay\ver30\SOURCE\INCLUDE\MHT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\funccomms.h\
		C:\softpay\ver30\SOURCE\INCLUDE\date.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HostInterfaceActivator.h\
		C:\softpay\ver30\SOURCE\INCLUDE\RetryXTimesCommsHandler.h\
		C:\softpay\ver30\SOURCE\INCLUDE\passwd.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SoftPayBaseCommsHandler.h\
		C:\softpay\ver30\SOURCE\INCLUDE\funcids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CommsHandlerAll.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\PETHostInterfaceActivator.h\
		C:\softpay\ver30\SOURCE\INCLUDE\print.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h\
		C:\softpay\ver30\SOURCE\INCLUDE\batch.h 
	@echo COMPILING...$(SrcFile1).cpp
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile1).cpp | fmterr.exe

$(OBJ_DIR)\$(SrcFile2).o : $(SrcDir)\$(SrcFile2).cpp \
		C:\softpay\ver30\SOURCE\INCLUDE\PCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CommsHandlerAll.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SoftPayBaseCommsHandler.h\
		C:\softpay\ver30\SOURCE\INCLUDE\PETCommsHandler.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\print.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pform.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h 
	@echo COMPILING...$(SrcFile2).cpp
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile2).cpp | fmterr.exe

$(OBJ_DIR)\$(SrcFile3).o : $(SrcDir)\$(SrcFile3).cpp \
		C:\softpay\ver30\SOURCE\INCLUDE\funcs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CommsHandlerAll.h 
	@echo COMPILING...$(SrcFile3).cpp
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile3).cpp | fmterr.exe

$(OBJ_DIR)\$(SrcFile4).o : $(SrcDir)\$(SrcFile4).cpp \
		C:\softpay\ver30\SOURCE\INCLUDE\PCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CommsHandlerAll.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\print.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pform.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h 
	@echo COMPILING...$(SrcFile4).cpp
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile4).cpp | fmterr.exe

$(OBJ_DIR)\$(SrcFile5).o : $(SrcDir)\$(SrcFile5).cpp \
		C:\softpay\ver30\SOURCE\INCLUDE\CommsHandlerAll.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HDT.h 
	@echo COMPILING...$(SrcFile5).cpp
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile5).cpp | fmterr.exe

$(OBJ_DIR)\$(SrcFile6).o : $(SrcDir)\$(SrcFile6).cpp \
		C:\softpay\ver30\SOURCE\INCLUDE\PCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CommsHandlerAll.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mdmdefs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CPT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\print.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pform.h\
		C:\softpay\ver30\SOURCE\INCLUDE\UCLActivator.h\
		C:\softpay\ver30\SOURCE\INCLUDE\vidnld.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h 
	@echo COMPILING...$(SrcFile6).cpp
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile6).cpp | fmterr.exe

